*** REPLICATION FILE ***

*** "Electoral cycles of protests and statistical manipulation: 
*** evidence from the COVID-19 pandemic," Democratization
*** Hidekuni Washida
*** October 28, 2024

*** Figure 1

* Figure 1 (upper 3 graphs)

reg v2x_freexp_altinf i.Regime3_bmr lngdppc2019  if year>=2020, cluster(e_regionpol_6C)
margins, at(Regime3_bmr=(0 1 2))
marginsplot, horizontal recast(scatter) title("Freedom of expression (V-Dem)", size(Medium)) ytitle("") xtitle("") saving(fig1a.gph, replace) xlabel(0 .25 .5 .75 1) aspect(.2) ysc(reverse)

reg v2x_frassoc_thick i.Regime3_bmr lngdppc2019 if year>=2020, cluster(e_regionpol_6C)
margins, at(Regime3_bmr=(0 1 2))
marginsplot, horizontal recast(scatter) title("Freedom of association (V-Dem)", size(Medium)) ytitle("") xtitle("") saving(fig1b.gph, replace) xlabel(0 .25 .5 .75 1) aspect(.2) ysc(reverse)

reg v2mecenefm i.Regime3_bmr lngdppc2019 if year>=2020, cluster(e_regionpol_6C)
margins, at(Regime3_bmr=(0 1 2))
marginsplot, horizontal recast(scatter) title("Restraint of censorship (V-Dem)", size(Medium)) ytitle("") xtitle("") saving(fig1c.gph, replace)   aspect(.2) ysc(reverse)

* descriptive statistics
sum v2x_freexp_altinf v2x_frassoc_thick v2mecenefm i.Regime3_bmr lngdppc2019 if e(sample)==1
